import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_app/main02.dart';

main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Flutter Demo'),
        ),
        body: HomeContent(),
      ),
    );
  }
}

class HomeContent extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Container(
        child: Image.network(
          "https://nimg.ws.126.net/?url=http%3A%2F%2Fdingyue.ws.126.net%2FnJmjx6MxgPEsfXSy6vLzqoanX5pAUVVgVVU2Avr07ABws1546655747784.jpeg&thumbnail=650x2147483647&quality=80&type=jpg",
          alignment: Alignment.bottomLeft,
          // color: Colors.blue,
          // colorBlendMode: BlendMode.luminosity,
          fit: BoxFit.cover,
          // repeat: ImageRepeat.repeatX,
        ),
        width: 300,
        height: 300,
        decoration: BoxDecoration(
          color: Colors.yellow,
        ),
      ),
    );
  }
}
